package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.RoomScheduleDao;
import pojo.RoomSchedule;
import service.RoomScheduleManager;

@Service
public class RoomScheduleManagerImpl implements RoomScheduleManager {

	@Autowired
	private RoomScheduleDao roomscheduleDao;
	
	@Transactional
	@Override
	public RoomSchedule addInfo(RoomSchedule info) {
		
		return roomscheduleDao.addInfo(info);
	}
	
	@Transactional
	@Override
	public void addInfoList(List<RoomSchedule> infoList) {
		roomscheduleDao.addInfoList(infoList);
	}

	@Transactional
	@Override
	public RoomSchedule getResult(RoomSchedule param) {
		return roomscheduleDao.getResult(param);
	}

	@Transactional
	@Override
	public List<RoomSchedule> getResults(String like) {
		return roomscheduleDao.getResults(like);
	}

	@Transactional
	@Override
	public boolean updateInfo(RoomSchedule info) {
		return roomscheduleDao.updateInfo(info);
	}

	@Transactional
	@Override
	public boolean deleteInfo(RoomSchedule info) {
		return roomscheduleDao.deleteInfo(info);
	}

}
